﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace SanJ.FreeCare.AllergyIntolerances
{
    public interface IAllergyIntoleranceResponstiry : IRepository<AllergyIntolerance, Guid>
    {
        /// <summary>
        /// 查询过敏不耐受记录
        /// </summary>
        /// <param name="patientId"></param>
        /// <returns></returns>
        Task<AllergyIntolerance> GetAllergyIntoleranceRecordByPatientIdAsync(Guid patientId);

        /// <summary>
        /// 查询过敏不耐受记录
        /// </summary>
        /// <param name="EncounterId"></param>
        /// <returns></returns>
        Task<AllergyIntolerance> GetAllergyIntoleranceRecordByEncounterIdAsync(Guid EncounterId);
    }
}
